#include <stdio.h>
#include <string.h>
#include <math.h>

int main(int argc, char *argv[])
{
	char buf[128];
	int n, a[26];
	int i, ans, max, min, flg;

	scanf("%s", buf);
	n = strlen(buf);
	for (i=0; i<26; i++) {
		a[i] = 0;
	}
	for (i=0; i<n; i++) {
		a[buf[i]-'a']++;
	}

	max = 0;
	min = 100;
	for (i=0; i<26; i++) {
		if (a[i] > max && a[i] > 0) max = a[i];
		if (a[i] < min && a[i] > 0) min = a[i];
	}
	ans = max - min;

	flg = 1;
	if (ans == 0 || ans == 1) flg = 0;
	for (i=2; i<=(int)sqrt(ans); i++) {
		if (ans % i == 0) {
			flg = 0;
		}
	}

	if (flg) {
		printf("Lucky Word\n");
		printf("%d\n", ans);
	} else {
		printf("No Answer\n");
		printf("0\n");
	}

	return 0;
}
